<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	<script type="text/javascript">
		function test()
		{
//			return a>b?a:b;
//			alert(document.getElementById("kid").value)
			pwd=document.getElementById("kid").value
			if(pwd.length<3) document.getElementById("info").innerText="弱"
			else if(pwd.length<8) document.getElementById("info").innerText="中"
			else document.getElementById("info").innerText="强"
		}
		function tips()
		{
			alert("加载过程中")
		
		}
		
	</script>
	</head>
	<body onload="tips()">
		
		<div align="center">
			输入信息<input type="text" value="123"  id="kid" onkeyup="test()">
		<lable id="info"></lable>
		</div>
		
<!--//			document.write("<h1>大家好<h1>")
//			alert("大家好")
//			alert(confirm("明天放假吗"))
//			confirm(max(2,3))
//		prompt("输入验证码","123")-->
		
	</body>
</html>
